<!-- Build by Eming -->
<%@ page contentType="text/html;charset=utf-8" language="java"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%> 
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%> 
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<html:html>
	<head>		
		<title>CG</title>
		<META http-equiv=Content-Type content="text/html; charset=utf-8"><LINK
		href="./styles/index.css" type=text/css rel=stylesheet>
		<style type="text/css"></style>
		<html:base/>
		<script language="javascript">
			var restrictpcinoffice = "no";

			function window_onload() {
				var a=document.getElementsByTagName("input");
				a[0].focus();
			}
</script>
	</head>
	<body bgcolor="ecf4fa" onLoad="window_onload()">
		<html:form action="/login" onsubmit="return  submitUserLogin()">
			<p>&nbsp;</p>
			<p>&nbsp;</p>
			<p>&nbsp;</p>
			<table width="992" height="425" border="0" align="center" cellpadding="0" cellspacing="0" background="image/bgnew.jpg" id="Table_01">
				<tr>
					<td height="50">&nbsp;</td>
				    <td height="50">&nbsp;</td>
				    <td width="354" rowspan="2"><img src="image/bgnew1.jpg" width="362" height="532" border="0" usemap="#Map"></td>
				</tr>
				<tr>
				  <td width="283" align="left" valign="top">&nbsp;</td>
			      <td width="355" align="left" valign="top"><table width="207" height="67" border="0" cellpadding="0" cellspacing="0" background="image/index_06.png">
                    <tr>
                      <td width="53" valign="top"></td>
                      <td width="85" valign="middle"><html:text property="regname" size="10" maxlength="10" style="font-family: Tahoma; font-size: 11px" /></td>
                      <td width="69" rowspan="2"><html:img onclick="submitUserLogin()" src="image/index_07.png" width="74" height="67" border="0" style="cursor:HAND"/></td>
                    </tr>
                    <tr>
                      <td valign="top">　</td>
                      <td valign="top"><html:password property="password" size="10" maxlength="10" style="font-family: Tahoma; font-size: 11px" onkeydown="if (event.keyCode==13 | event.which==13) {window.document.loginForm.submit();}"/></td>
                    </tr>
                    <tr>
			              	<td colspan=2 align="center">
			              		<logic:notEmpty name="status">
			              			<font size=2 color=red><bean:message key="LoginError"/></font>			              		</logic:notEmpty>
			              		
			              		<logic:notEmpty name="NoError">
			              			<font size=2 color=red>试用人数超过上限</font>			              		</logic:notEmpty>
			              		
			              		<logic:notEmpty name="DateError">
			              			<font size=2 color=red>OUT OF DATE</font>			              		</logic:notEmpty>			              	</td>
	                </tr>
                  </table></td>
		      </tr>
			</table>
	</html:form>
	
<map name="Map">
  <area shape="rect" coords="102,129,285,146" href="mailto:ontimesales@animationsp.com" target="_blank">
<area shape="rect" coords="58,347,244,360" href="mailto:ontimesales@animationsp.com" target="_blank">
<area shape="rect" coords="18,402,202,413" href="mailto:ontimesales@animationsp.com" target="_blank">
</map></body>
</html:html>
	<script language="javaScript">

	function isEmpty(theField)
	{
		if(theField.value=="")
			return true;
		else
		return false;
	}
	function submitUserLogin()
	{
		var emptyField=0;
	 	if(isEmpty(window.document.loginForm.regname)==true)
 		{
     		alert("请输入用户名！");
     		window.document.loginForm.regname.focus();
     		return false;
 		}
		if(isEmpty(window.document.loginForm.password)==true)
 		{
     		alert("请输入密码！");
     		window.document.loginForm.password.focus();
     		return false;
		}
     	window.document.loginForm.submit();
	 }
	 function changerole()
	 {
		if(window.document.loginForm.RoleNo.value=="0")
		{
			alert("请选择角色！");
			window.document.loginForm.RoleNo.focus();
			return false;
		}
	 	window.document.loginForm.action="./userLogin/changeRole.jsp";
	 	window.document.loginForm.submit();
	 }
	 
function name_presskey() {
	if (window.event.keyCode==13 | event.which==13) {
		window.event.keyCode = 9 ;
		event.which =9;
	}
}

function pwd_presskey() {
	if (window.event.keyCode==13 | event.which==13) {
		window.document.loginForm.submit();
	}
}
	</script>
	<SCRIPT language="javascript" src="./js/ciphering.js"></SCRIPT>

